
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    xmlns:p="http://primefaces.org/ui">

<div class = "entete" >

<table width='100%'>
<tr>
	<td></td>
	<td></td>
	<td>
		<h:link value = "Contact" outcome="/Contact" /> |
		<h:link value = "#{beanConnexion.label1}" outcome="#{beanConnexion.connexion}" />	|		  
 		<h:link value = "#{beanConnexion.label2}" outcome="/notInConnexion/Inscription"/>
 	</td>
</tr>
<tr>
	<td width='33%'> <h:graphicImage value="/resource/img/logo.png"  id = "imgEntete"/> </td> 
	<td width='33%'></td>
	<td>
		<h:form >
			<h:inputText  value="#{beanRecherche1.titre}" size="30" />
			<h:commandButton class="boutonInscription" value="Chercher" action="#{beanRecherche1.rechercherFilm}" />
		</h:form> 
	</td>
</tr>
</table>

<p:tabMenu activeIndex="#{param.i}">
    	<p:menuitem value="Acceuil" outcome="/Home" >
    	<f:param name="i" value="0" />
		</p:menuitem>
    
    	<p:menuitem value="Film" outcome="/Film"  > 
    	<f:param name="i" value="1" />  
   		</p:menuitem>
    
    	<p:menuitem value="Artiste" outcome="/Artiste" >
    	<f:param name="i" value="2" />
    	</p:menuitem>
    	
    	<p:menuitem value="Valider Film" outcome="/gestion/ValiderFilm.xhtml" rendered="#{beanConnexion.gestion}">
    	<f:param name="i" value="3" />
   		</p:menuitem>
   		
   		<p:menuitem value="Valider Artiste" outcome="/gestion/ValiderArtiste.xhtml" rendered="#{beanConnexion.gestion}">
    	<f:param name="i" value="4" />
    	</p:menuitem>
    	
    	<p:menuitem value="Valider Participation" outcome="/gestion/ValiderParticipation.xhtml" rendered="#{beanConnexion.gestion}">
    	<f:param name="i" value="5" />
   		</p:menuitem>
   		
   		<p:menuitem value="Valider Recompense" outcome="/gestion/ValiderRecompense.xhtml" rendered="#{beanConnexion.gestion}">
    	<f:param name="i" value="6" />
   		</p:menuitem>
	</p:tabMenu>
</div>
</ui:composition>
